﻿CREATE TRIGGER CommitteeBankAccountMainBranchDeposites_Tracking_Delete
ON [dbo].[CommitteeBankAccountMainBranchDeposites] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.CommitteeBankAccountMainBranchDeposites_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.CommitteeBankAccountMainBranchDeposites_Tracking s JOIN DELETED i
    ON s.CommitteeBankAccountMainBranchDepositID = i.CommitteeBankAccountMainBranchDepositID
END











